<{if $form}>

<{includeq file="db:spotlight_form.html"}>
<script src='../include/jquery-1.3.2.min.js' type='text/javascript'></script>
<script>
$(document).ready(function(){
    $("select[id=component_name]").change( function() {
        var name = $(this).val();  
        $('#component_logo img').attr('src','../components/'+name+'/logo.jpg');
    });
});   
</script>
    
<{else}>

<a href="admin.spotlight.php?op=new"><{$smarty.const._AM_SPOTLIGHT_ADD_SLIDE}></a>
<table class="outer">
    <tr>
        <th align="center" width=40%><{$smarty.const._AM_SPOTLIGHT_SLIDE_NAME}></th> 
        <th align="center" width=20%><{$smarty.const._AM_SPOTLIGHT_OPERATING}></th>
    </tr>
    <{foreach item=spotlight from=$spotlights}>
        <tr class="<{cycle values='odd, even'}>" align="center">
            <td><{$spotlight.sp_name}></td>  
            <td align=center>
                <a href="admin.page.php?sp_id=<{$spotlight.sp_id}>"><{$smarty.const._AM_SPOTLIGHT_MANAGEMENT}></a> 
                <a href="admin.spotlight.php?sp_id=<{$spotlight.sp_id}>"><{$smarty.const._AM_SPOTLIGHT_EDIT}></a> 
                <a href="action.spotlight.php?ac=delete&amp;sp_id=<{$spotlight.sp_id}>"><{$smarty.const._AM_SPOTLIGHT_DELETE}></a> 
            </td>
        </tr>
    <{/foreach}>
</table>
<{/if}>
